<?php

namespace DP\Decorator\Lib;

use DP\Decorator\Core\Beverage;

class Milk extends CondimentDecorator
{
    private $beveger;

    public function __construct(Beverage $beverage)
    {
        parent::__construct();

        $this->beveger = $beverage;
        $this->name = 'Milk';
    }

    public function cost()
    {
        return $this->beveger->cost() + 0.2;
    }
}
